<?php

namespace Modules\Edu\Http\Controllers\Center;

use App\User;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Routing\Controller;

class FavoriteController extends Controller
{

    public function index(User $user,$model)
    {
        $models=$user->getFavoriteModel($model)->get();
        return view('edu::center.favorite.'.strtolower($model),compact('user','models'));
    }


}
